TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "Resources", "NoVScroll": "1", "IdChars": "0123456789", "NumberId": "1", "Undo": "1", "MainCol": "id", "HideRootTree": "1", "Size": "Low", "StyleDependencyModifier": "0", "CopyPasteRows": "2"   }, 
   "Cfg_2" : { "DefaultDate": "2/1/2000"   }, 
   "LeftCols" : [ 
      { "Name": "id", "Type": "Text", "CanEdit": "0", "CanSort": "0", "Width": "50"   }, 
      { "Name": "A"   }, 
      { "Name": "B", "Width": "75"   }, 
      { "Name": "C"   }, 
      { "Name": "D"   }, 
      { "Name": "E"   }, 
      { "Name": "F"   }, 
      { "Name": "G", "Type": "Float", "Format": "0.00", "Formula": "Grid.GetGanttPrice(Row,'GANTT')", "Width": "62"   }  
   ], 
   "Cols" : [ 
      { "Name": "GANTT", "Type": "Gantt", 
         "GanttLeft": "1", "GanttRight": "0", 
         "GanttHeader6": "d#%d", 
         "GanttHeader2": "d#ddddd", "GanttHeaderId2": "ResHeader", 
         "GanttHeader3": "d#%d", "GanttHeaderId3": "ResHeader", 
         "GanttTask": "Main,Box", "GanttRunHtml": "*Resources*", 
         "GanttResourcesAssign": "4", 
         "GanttResourcesExtra": "3", 
         "GanttResources": "D", 
         "GanttShowHtml": "3", 
         "GanttChartRound": "d", 
         "GanttRunIds": "3"  
          }  
   ], 
   "Def" : [ 
      { "Name": "R", "CanEdit": "0", "CanExpand": "0"   }, 
      { "Name": "MAIN", "Spanned": "1", 
         "AType": "Date", "AFormat": "MMM d", "ACanEdit": "1", "BType": "Date", "BFormat": "MMM d", "BCanEdit": "1", "CType": "Float", "CCanEdit": "1", 
         "DType": "Text", "DCanEdit": "0", "DSpan": "3", 
         "GANTTGanttStart": "A", "GANTTGanttEnd": "B", "GANTTGanttDuration": "C"  
          }, 
      { "Name": "PARTS", "Spanned": "1", "AType": "Date", "ARange": "1", "ASpan": "3", "AFormat": "MMM d", 
         "DType": "Text", "DCanEdit": "0", "DSpan": "3", 
         "GANTTGanttParts": "A"  
          }, 
      { "Name": "RUN", "Spanned": "1", "AType": "Text", "ASpan": "3", 
         "DType": "Text", "DCanEdit": "0", "DSpan": "3", 
         "GANTTGanttRun": "A"  
          }, 
      { "Name": "CHART", "Spanned": "1", "Calculated": "1", 
         "GANTTGanttAvailability": "D", 
         "ASpan": "3", "AType": "Select", "ADefaults": "|", "AOnClickSideDefaults": "Grid.ShowGanttResources(Row,Col)", "AHtmlPrefix": "Resource <span style='color:red;'>", 
         "DSpan": "3", 
         "GANTTGanttResources": ""  
          }  
   ], 
   "Header" : { "id": "id", "SortIcons": "0", "Spanned": "1", "DSpan": "3", "A": "Start", "B": "End", "C": "Dur", "D": "Resource", "G": "Price"   }, 
   "Body" : [ 
      [ 
         { "id": "1", "CanFilter": "2", "AggChildren": "1", "Items": [
            { "id": "2", "Def": "MAIN", "Recalc": "35", 
               "A": "1/16/2000", "B": "2/13/2000", "D": "One"  
                }, 
            { "id": "3", "Def": "MAIN", "Recalc": "35", 
               "A": "1/31/2000", "B": "2/6/2000", "D": "Three*2;Four*2.5;Mat+24"  
                }, 
            { "id": "4", "Def": "MAIN", "Recalc": "35", 
               "A": "1/16/2000", "B": "1/29/2000", "D": "25;Four*1.5"  
                }, 
            { "id": "5", "Def": "MAIN", "Recalc": "35", 
               "A": "2/8/2000", "B": "2/12/2000", "D": "Two*2"  
                }, 
            { "id": "6", "Def": "CHART", 
               "A": "Four", "AHtmlPostfix": "</span> of siblings", 
               "DFormula": "Grid.GetResourceUsage(A,1,Row,4)"  
                }  
         ]}, 
         { "id": "7", "Def": "CHART", "CanFilter": "2", "AggChildren": "1", 
               "A": "Five", "AHtmlPostfix": "</span> of children", 
               "DFormula": "Grid.GetResourceUsage(A,1,Row,1)", 
            "Items": [
            { "id": "8", "Def": "MAIN", 
               "A": "2/4/2000", "B": "2/11/2000", "D": "One+14"  
                }, 
            { "id": "9", "Def": "MAIN", 
               "B": "2/11/2000", "D": "1000"  
                }, 
            { "id": "10", "Def": "PARTS", 
               "A": "1/16/2000~1/27/2000;1/28/2000~1/29/2000;1/31/2000;2/3/2000~2/5/2000", "D": "200;Two*0.2+12;Five*1.5+5"  
                }, 
            { "id": "11", "Def": "PARTS", 
               "A": "1/16/2000~1/23/2000;2/1/2000~2/7/2000", "D": "Three;Five*1.5"  
                }  
         ]}, 
         { "id": "12", "Def": "RUN", "DFormula": "Grid.GetGanttRunResourcesString(Row)", "Calculated": "1", 
            "A": [{Start:'1/16/2000',Duration:5,Resources:'Two*2;Mat'},{Start:'1/21/2000',Duration:4,Resources:'One+10'},
            {Start:'1/25/2000',Duration:2,Resources:'One'},
            {Duration:3,Resources:'Four'},
            {Start:'1/30/2000',Duration:6,Resources:'Three*3+10;Mat'},
            {Start:'2/8/2000',Duration:3,Resources:'Three'}]  
             }  
      ], 
   ], 
   "Resources" : [ 
      { "Name": "One", "Price": "10", "Availability": "3", "Type": "1"   }, 
      { "Name": "Two", "Price": "12", "Availability": "3", "Type": "1"   }, 
      { "Name": "Three", "Price": "30", "Availability": "2;w#2/3/2000~2/6/2000", "Type": "1"   }, 
      { "Name": "Four", "Price": "14", "Availability": "1/24/2000~2/15/2000#3", "Type": "1"   }, 
      { "Name": "Five", "Price": "25", "Availability": "5", "Type": "1"   }, 
      { "Name": "Mat", "Price": "5", "Availability": "2;w#1/20/2000~2/12/2000#10", "Type": "2"   }  
   ], 

   // Resources usage sub table 
   "Def_2" : [ 
      // Default row for resources 
      { "Name": "RES", "CanDelete": "0", "CanSelect": "0", "Calculated": "1", "CalcOrder": "A,B,C,D,E,F,G", 
         "GANTTGanttAvailability": "A#3,A#1,A#8", "GANTTGanttAvailabilityFormat": "0.#", 
         "AFormula": "Row.GANTTGanttChartResource", "AType": "Text", 
         "BType": "Text", "BCanEdit": "1", 
         "BFormula": "Grid.Resources[A] ? Grid.Resources[A].Availability : 0", 
         "BOnChange": "if(Grid.Resources[Row.A]) Grid.Resources[Row.A].Availability = Value;", 
         "BButton": "Dates", 
         "BDatesRepeatType": "Enum", "BDatesRepeatEnum": "||Weekly|Daily", "BDatesRepeatEnumKeys": "||w|d", 
         "BDatesValueType": "Enum", "BDatesValueEnum": "|-5|-4|-3|-2|-1|0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15", "BDatesValueCaption": "Count", 
         "CType": "Float", "CFormat": "0.00", "CFormula": "Grid.Resources[A]?ganttresourceunits(A):0", 
         "DType": "Float", "DFormat": "0.00", "DFormula": "Grid.Resources[A]?ganttresourcepeak(A):0", 
         "EType": "Enum", "EEnum": "|wrk|mat", "EEnumKeys": "|1|2", "ECanEdit": "1", 
         "EFormula": "Grid.Resources[A] ? Grid.Resources[A].Type : 1", 
         "EOnChange": "if(Grid.Resources[Row.A]) Grid.Resources[Row.A].Type = Value; Grid.Calculate(1)", 
         "FType": "Float", "FFormat": "0.00", "FEditMask": "^\\d*[\\d\\.\\,]?\\d*$", "FCanEdit": "1", 
         "FFormula": "Grid.Resources[A] ? Grid.Resources[A].Price : 0", 
         "FOnChange": "if(Grid.Resources[Row.A]) Grid.Resources[Row.A].Price = Value; Grid.Calculate(1)", 
         "GType": "Float", "GFormat": "0.00", "GFormula": "F*C"  
          }  
   ], 
   "Foot" : [ 
      { "Kind":"Header", "id": "ResHeader", "idVisible": "0", "SortIcons": "0", "CanPrint": "1", 
         "A": "Resource", "B": "Availability", "C": "Total\u000Acount", "D": "Peak", "E": "Type", "F": "Unit\u000Aprice", "G": "Total\u000Aprice"  
          }, 
      { "id": "90", "Def": "RES", "GANTTGanttChartResource": "One"   }, 
      { "id": "91", "Def": "RES", "GANTTGanttChartResource": "Two"   }, 
      { "id": "92", "Def": "RES", "GANTTGanttChartResource": "Three"   }, 
      { "id": "93", "Def": "RES", "GANTTGanttChartResource": "Four"   }, 
      { "id": "94", "Def": "RES", "GANTTGanttChartResource": "Five"   }, 
      { "id": "95", "Def": "RES", "GANTTGanttChartResource": "Mat", "Height": "40"   }  
   ], 
   // End of resources usage sub table 

   "Solid" : [ 
   { "Kind":"Toolbar", "Cells05": "RES,USE,AVAIL,FREE,ERR,Sep,TOTAL", "CanFocus": "0", 
      "RESType": "SelectGanttResources", 
      "RESHtmlPrefix": "Show <b>", "RESHtmlPostfix": "</b>", 
      "RESEmptyValue": "all resources", 
      "RESWidth": "160", 

      "USEType": "Bool", "USENoColor": "1", "USECanEdit": "1", "USELeft": "5", "USECanFocus": "0", 
      "USELabelRight": "Used res.", "USE": "1", 
      "USEOnChange": ["",
         "Grid.Def.RES.GANTTGanttAvailability = (Row.AVAIL?\",A#3\":\"\") + (Row.USE?\",A#1\":\"\") + (Row.USE&&Row.AVAIL?\",A#8\":\"\") + (Row.FREE?\",A#5\":\"\") + (Row.ERR?\",A#6\":\"\");",
         "if(!Row.AVAIL&&!Row.FREE&&!Row.ERR) { ",
            "var F = Grid.GetRows(Grid.Foot); Grid.StartUpdate();",
            "for(var i=0;i<F.length;i++) if(Value) Grid.ShowRow(F[i]); else Grid.HideRow(F[i]); ",
            "Grid.EndUpdate();",
            "}",
         "else Grid.RefreshGantt();",
         ""], 
      "AVAILType": "Bool", "AVAILNoColor": "1", "AVAILCanEdit": "1", "AVAILLeft": "5", "AVAILCanFocus": "0", 
      "AVAILLabelRight": "Available res.", "AVAIL": "1", 
      "AVAILOnChange": ["",
         "Grid.Def.RES.GANTTGanttAvailability = (Row.AVAIL?\",A#3\":\"\") + (Row.USE?\",A#1\":\"\") + (Row.USE&&Row.AVAIL?\",A#8\":\"\") + (Row.FREE?\",A#5\":\"\") + (Row.ERR?\",A#6\":\"\");",
         "if(!Row.USE&&!Row.FREE&&!Row.ERR) { ",
            "var F = Grid.GetRows(Grid.Foot); Grid.StartUpdate();",
            "for(var i=0;i<F.length;i++) if(Value) Grid.ShowRow(F[i]); else Grid.HideRow(F[i]); ",
            "Grid.EndUpdate();",
            "}",
         "else Grid.RefreshGantt();",
         ""], 
      "FREEType": "Bool", "FREENoColor": "1", "FREECanEdit": "1", "FREELeft": "5", "FREECanFocus": "0", 
      "FREELabelRight": "Free res.", "FREE": "0", 
      "FREEOnChange": ["",
         "Grid.Def.RES.GANTTGanttAvailability = (Row.AVAIL?\",A#3\":\"\") + (Row.USE?\",A#1\":\"\") + (Row.USE&&Row.AVAIL?\",A#8\":\"\") + (Row.FREE?\",A#5\":\"\") + (Row.ERR?\",A#6\":\"\");",
         "if(!Row.USE&&!Row.AVAIL&&!Row.ERR) { ",
            "var F = Grid.GetRows(Grid.Foot); Grid.StartUpdate();",
            "for(var i=0;i<F.length;i++) if(Value) Grid.ShowRow(F[i]); else Grid.HideRow(F[i]); ",
            "Grid.EndUpdate();",
            "}",
         "else Grid.RefreshGantt();",
         ""], 
      "ERRType": "Bool", "ERRNoColor": "1", "ERRCanEdit": "1", "ERRCanFocus": "0", "ERRLeft": "5", 
      "ERRLabelRight": "Res. errors", "ERR": "0", 
      "ERROnChange": ["",
         "Grid.Def.RES.GANTTGanttAvailability = (Row.AVAIL?\",A#3\":\"\") + (Row.USE?\",A#1\":\"\") + (Row.USE&&Row.AVAIL?\",A#8\":\"\") + (Row.FREE?\",A#5\":\"\") + (Row.ERR?\",A#6\":\"\");",
         "if(!Row.USE&&!Row.AVAIL&&!Row.FREE) { ",
            "var F = Grid.GetRows(Grid.Foot); Grid.StartUpdate();",
            "for(var i=0;i<F.length;i++) if(Value) Grid.ShowRow(F[i]); else Grid.HideRow(F[i]); ",
            "Grid.EndUpdate();",
            "}",
         "else Grid.RefreshGantt();",
         ""], 

      "SepRelWidth": "1", "SepType": "Html", 
      "TOTALLabel": "Total price", "TOTALType": "Html", "TOTALFormula": "'<i>'+sum('G')+' USD</i>'", "TOTALWidth": "-1", "TOTALWrap": "0"  
       }  
   ], 
}) /* End of JSONP header */ 